﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public class AgentQltyVisitController
    {

        public static int Add(int QltyId, string AgentName, DateTime CreateDate, DateTime VisitDate)
        {
            return AgentQltyVisitDAL.Add(QltyId, AgentName, CreateDate, VisitDate);
        }
        public static bool Delete(int ID)
        {
            return AgentQltyVisitDAL.Delete(ID);
        }
        public static AgentQltyVisitInfo GetByID(int ID)
        {
            return  CBO.FillObject<AgentQltyVisitInfo>( AgentQltyVisitDAL.GetByID(ID));
        }
        public static DataTable GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return AgentQltyVisitDAL.GetPagination(whereSql, PageIndex, PageSize, Sort, ref  TotalCount);
        }
        public static bool Update(AgentQltyVisitInfo obj)
        {
            return AgentQltyVisitDAL.Update(obj);
        }
    }
}
